package com.liangwj.springbootdesignpatterns.createTypePatterns.builder.demo_1;

import com.liangwj.springbootdesignpatterns.createTypePatterns.builder.demo_1.impl.ChickenBurger;
import com.liangwj.springbootdesignpatterns.createTypePatterns.builder.demo_1.impl.Coke;
import com.liangwj.springbootdesignpatterns.createTypePatterns.builder.demo_1.impl.Pepsi;
import com.liangwj.springbootdesignpatterns.createTypePatterns.builder.demo_1.impl.VegBurger;

/**
 * <b>Description:</b> 创建一个 MealBuilder类, 实际的builder类负责创建 Meal 对象 <br/>
 * @author Lingwenjun
 * @date 2019/1/22-16:21
 * @version 1.0
 */
public class FoodMealBuilder {

    public FoodMeal prepareVegMeal() {
        FoodMeal meal = new FoodMeal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public FoodMeal prepareMeatMeal() {
        FoodMeal meal = new FoodMeal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
